package com.rc.saas.tenant.vo.order;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.rc.saas.tenant.base.BaseVo;
import com.rc.saas.tenant.common.utils.StringUtil;

import java.math.BigDecimal;
import java.util.Date;

/**
 * @author frog
 * @data 2019/10/14
 */
public class OrderTotalData extends BaseVo {
    private String userTenantCode;

    private String tenantCode;
    private String tenantName;
    private String hlhtOperatorName;

    private String stationName;//桩群名
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date addTime;//开通时间
    private String useTime;//充电时间(秒)
    private BigDecimal totalUsePower;//总使用电量
    private BigDecimal totalDisAmount;//总优惠金额
    private BigDecimal totalChaAmount;//总基本电费
    private BigDecimal totalSerAmount;//总服务费
    private BigDecimal totalPayAmount;//总实付金额
    private BigDecimal totalMoney;//总金额
    private Integer kwA;//30kw
    private Integer kwB;//45kw
    private Integer kwC;//60kw
    private Integer kwD;//120kw
    private Integer kwE;//180kw
    private Integer kwF;//7kw
    private Integer kwG;//90kw
    private Integer totalAmount;//合计
    private double totalPower;//总功率
    private Integer gunNum;//枪个数
    private String useRatio;//使用率
    private String addressDetail;//桩群地址
    private String companyName;
    private String orderInfoHlhtType;

    public String getOrderInfoHlhtType() {
        return orderInfoHlhtType;
    }

    public void setOrderInfoHlhtType(String orderInfoHlhtType) {
        this.orderInfoHlhtType = orderInfoHlhtType;
    }

    public String getCompanyName() {
        if(tenantCode.equals(userTenantCode) || "3".equals(orderInfoHlhtType)){
            return companyName;
        }else {
            return "";
        }
    }

    public void setCompanyName(String companyName) {
        this.companyName = companyName;
    }

    public BigDecimal getTotalMoney() {
        return totalMoney;
    }

    public void setTotalMoney(BigDecimal totalMoney) {
        this.totalMoney = totalMoney;
    }

    @Override
    public String getTenantCode() {
        return tenantCode;
    }

    @Override
    public void setTenantCode(String tenantCode) {
        this.tenantCode = tenantCode;
    }

    public String getTenantName() {
        return tenantName;
    }

    public void setTenantName(String tenantName) {
        this.tenantName = tenantName;
    }

    public String getHlhtOperatorName() {
        if (StringUtil.isBlank(hlhtOperatorName)) {
            return tenantName;
        }
        return hlhtOperatorName;
    }

    public void setHlhtOperatorName(String hlhtOperatorName) {
        this.hlhtOperatorName = hlhtOperatorName;
    }

    public String getStationName() {
        return stationName;
    }

    public void setStationName(String stationName) {
        this.stationName = stationName;
    }

    public Date getAddTime() {
        return addTime;
    }

    public void setAddTime(Date addTime) {
        this.addTime = addTime;
    }

    public String getUseTime() {
        return useTime;
    }

    public void setUseTime(String useTime) {
        this.useTime = useTime;
    }

    public BigDecimal getTotalUsePower() {
        return totalUsePower;
    }

    public void setTotalUsePower(BigDecimal totalUsePower) {
        this.totalUsePower = totalUsePower;
    }

    public BigDecimal getTotalDisAmount() {
        return totalDisAmount;
    }

    public void setTotalDisAmount(BigDecimal totalDisAmount) {
        this.totalDisAmount = totalDisAmount;
    }

    public BigDecimal getTotalChaAmount() {
        return totalChaAmount;
    }

    public void setTotalChaAmount(BigDecimal totalChaAmount) {
        this.totalChaAmount = totalChaAmount;
    }

    public BigDecimal getTotalSerAmount() {
        return totalSerAmount;
    }

    public void setTotalSerAmount(BigDecimal totalSerAmount) {
        this.totalSerAmount = totalSerAmount;
    }

    public BigDecimal getTotalPayAmount() {
        return totalPayAmount;
    }

    public void setTotalPayAmount(BigDecimal totalPayAmount) {
        this.totalPayAmount = totalPayAmount;
    }

    public Integer getKwA() {
        return kwA;
    }

    public void setKwA(Integer kwA) {
        this.kwA = kwA;
    }

    public Integer getKwB() {
        return kwB;
    }

    public void setKwB(Integer kwB) {
        this.kwB = kwB;
    }

    public Integer getKwC() {
        return kwC;
    }

    public void setKwC(Integer kwC) {
        this.kwC = kwC;
    }

    public Integer getKwD() {
        return kwD;
    }

    public void setKwD(Integer kwD) {
        this.kwD = kwD;
    }

    public Integer getKwE() {
        return kwE;
    }

    public void setKwE(Integer kwE) {
        this.kwE = kwE;
    }

    public Integer getKwF() {
        return kwF;
    }

    public void setKwF(Integer kwF) {
        this.kwF = kwF;
    }

    public Integer getKwG() {
        return kwG;
    }

    public void setKwG(Integer kwG) {
        this.kwG = kwG;
    }

    public Integer getTotalAmount() {
        return totalAmount;
    }

    public void setTotalAmount(Integer totalAmount) {
        this.totalAmount = totalAmount;
    }

    public double getTotalPower() {
        return totalPower;
    }

    public void setTotalPower(double totalPower) {
        this.totalPower = totalPower;
    }

    public Integer getGunNum() {
        return gunNum;
    }

    public void setGunNum(Integer gunNum) {
        this.gunNum = gunNum;
    }

    public String getUseRatio() {
        return useRatio;
    }

    public void setUseRatio(String useRatio) {
        this.useRatio = useRatio;
    }

    public String getAddressDetail() {
        return addressDetail;
    }

    public void setAddressDetail(String addressDetail) {
        this.addressDetail = addressDetail;
    }

    public String getUserTenantCode() {
        return userTenantCode;
    }

    public void setUserTenantCode(String userTenantCode) {
        this.userTenantCode = userTenantCode;
    }
}
